package com.zhdl.hardware.io.smartLink.repository;

import com.zhdl.common.ytools.callback.CommonCallback;

public interface IOCmdHandleDao {

    /**
     * IO-读取01 线圈
     *
     * @param callback 回调
     */
    void ioReadCoilSignal(String value, CommonCallback<byte[]> callback);

    /**
     * IO-读取02 离散变量
     *
     * @param callback 回调
     */
    void ioReadDiscreteSignal(String value, CommonCallback<byte[]> callback);

    /**
     * IO-05写单个线圈
     *
     * @param address 地址
     * @param open    打开状态
     */
    void ioWriteCoilSignal(int address, String open, CommonCallback<byte[]> callback);

    /**
     * IO-15写多个线圈
     *
     * @param address 地址
     * @param open    打开状态
     */
    void ioWriteDoubleCoilSignal(int address, boolean open, CommonCallback<byte[]> callback);

}
